// import store from '../store/index'
export const setSession = function (name, obj) {
    let str = JSON.stringify(obj);
    sessionStorage.setItem(name, str);
}
export const getSession = function (name, roleId) {
    // if(roleId == store.state.user.type)
    // let name =""
    // if(roleId==2){
    //     name = 
    // }
    let str = sessionStorage.getItem(name)
    let obj = JSON.parse(str)
    return obj
}